package cn.edu.hit.rest.entity;

import java.util.Map;

public class ResultPack {
    private String code = "0";
    private String userMessage = "获取诊断结果成功。";
    private String innerMessage = "获取诊断结果成功。";
    private ResultType status = ResultType.SUCCESS;
    private String moreInfo = "";
    private Object exception;
//    private MatchResult data;
    private Map data;
    private boolean empty = false;
    private boolean successAndNotEmpty = false;
    private boolean success = false;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUserMessage() {
        return userMessage;
    }

    public void setUserMessage(String userMessage) {
        this.userMessage = userMessage;
    }

    public String getInnerMessage() {
        return innerMessage;
    }

    public void setInnerMessage(String innerMessage) {
        this.innerMessage = innerMessage;
    }

    public ResultType getStatus() {
        return status;
    }

    public void setStatus(ResultType status) {
        this.status = status;
    }

    public String getMoreInfo() {
        return moreInfo;
    }

    public void setMoreInfo(String moreInfo) {
        this.moreInfo = moreInfo;
    }

    public Object getException() {
        return exception;
    }

    public void setException(Object exception) {
        this.exception = exception;
    }

    public Map getData() {
        return data;
    }

    public void setData(Map data) {
        this.data = data;
    }

    public boolean isEmpty() {
        return empty;
    }

    public void setEmpty(boolean empty) {
        this.empty = empty;
    }

    public boolean isSuccessAndNotEmpty() {
        return successAndNotEmpty;
    }

    public void setSuccessAndNotEmpty(boolean successAndNotEmpty) {
        this.successAndNotEmpty = successAndNotEmpty;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public enum ResultType{
        SUCCESS,FAIL
    }
}
